package com.sun.nacos.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class HelloController {

    @GetMapping(value = "/hi/{name}")
    public String hi(@PathVariable String name) {
        log.info("hi name = {}", name);
        return "hello " + name;
    }

}